﻿package code
{
	import flash.text.*;
		
	public class HUD extends GameObject
	{
		public function HUD(spawnX:int, spawnY:int)
		{
			this.x = spawnX;
			this.y = spawnY;
		}
		
		public function UpdateScore(scoreAmount:uint)
		{
			score_textfield.text = "" + scoreAmount;
		}
		
		public function UpdateHealth(hpAmount:uint)
		{
			health_textfield.text = "" + hpAmount;
		}
	}
}